package d5_printstream;

import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.nio.charset.Charset;

/**
 * 2024/6/20 掌握打印流：PrintStream/PrintWriter的用法
 */
public class PrintTest1 {
    public static void main(String[] args) {
        //1.创建一个打印流管道
        try (
                PrintStream ps=
                        new PrintStream("file-io2\\src\\test\\PrintStream");


                ){
               ps.println(99);
               ps.println("打印流管道");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
